import request from "@/utils/request";

// 创建权限
export function createRole(data) {
  return request({
    url: "/pc/role/create",
    method: "post",
    data,
  });
}

// 获取权限分页数据
export function getRoleByPagination(data) {
  return request({
    url: "/pc/role/get/pagination",
    method: "post",
    data,
  });
}

// 编辑权限
export function editRoleByUuid(data) {
  return request({
    url: "/pc/role/edit/uuid",
    method: "post",
    data,
  });
}

// 通过 uuid 删除权限
export function removeRoleByUuid(data) {
  return request({
    url: "/pc/role/remove/uuid",
    method: "post",
    data,
  });
}

// 获取全部权限列表
export function getRoleByAll() {
  return request({
    url: "/pc/role/get/all",
    method: "post",
  });
}
